/**
 * 项目名称:登录：忽略大小写的字符比较
 *
 * @Author: 夏国倩
 * @Date: 2023/9/18 15:42
 * @Copyright
 */
package String1;
import java.util.Scanner;
public class Login2 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        String uname,pwd;
        System.out.print("请输入用户名：");
        uname=input.next();
        System.out.print("请输入密码：");
        pwd=input.next();
        if (uname.equalsIgnoreCase("TOM") && pwd.equalsIgnoreCase("1234567")){
            System.out.println("登录成功给！");
        }else {
            System.out.println("用户名或密码不匹配，登陆失败！");
        }
    }
}
